package cn.com.darly.videoandroidpm.ui;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.darly.dview.framework.ContentBinder;

import cn.com.darly.videoandroidpm.R;
import cn.com.darly.videoandroidpm.base.BaseActivity;

/**
 * 欢迎页面//做些前期数据缓存或者数据替换等操作一般延迟3秒
 * @author Darly/张宇辉/2018/6/1 11:39
 * @version 1.0/cn.com.darly.videoandroidpm.ui
 */
@ContentBinder(R.layout.activity_splash)
public class SplashActivity extends BaseActivity {

    private Handler handler = new Handler(){
        @Override
        public void handleMessage(Message msg) {
            sendToMain();
        }
    };
    private void sendToMain() {
        //跳转到首页
        startActivity(new Intent(this,PMActivity.class));
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        handler.sendEmptyMessageDelayed(0,2500);
    }

    @Override
    protected void loadData() {

    }

    @Override
    protected void initListener() {

    }
}
